/*
 * @Description: 文档检测导航包裹组件
 * @Author: Rfan
 * @Date: 2022-10-09 11:36:40
 * @LastEditTime: 2022-10-09 11:45:08
 */

import { useArchivesDetectionContext } from '../contexts/ArchivesDetectionContext';
import UFANav, { IUFAChangeCallback } from '@/components/UFANav';

const PageSidebar = () => {
  const { setSelectFond, setSelectAT } = useArchivesDetectionContext();

  const navChange = ({ fondItem, atItem }: IUFAChangeCallback) => {
    console.log({ fondItem, atItem });
    setSelectFond(fondItem);
    setSelectAT(atItem);
  };

  return (
    <>
      <UFANav onChange={navChange} />
    </>
  );
};

export default PageSidebar;
